#ifndef MW_H
#define MW_H

#include <QMainWindow>

#include <QDebug>

#include <QFile>
#include <QAudioInput>
#include <QAudioFormat>
#include <QAudioDeviceInfo>
#include <QTimer>

#include <QDesktopWidget>

#include <QDesktopServices>
#include <QUrl>

#include "homewidget.h"
#include "stalkmodel.h"

//#include <QFont>
//#include <QFontDatabase>

namespace Ui {
class mw;
}

class mw : public QMainWindow
{
    Q_OBJECT

public:
    explicit mw(QWidget *parent = 0);
    ~mw();

private slots:
    void on_connectButton_clicked();

    void on_aboutStalkButton_clicked();

public slots:
    void onConnecting();
    void onAuthSuccess();
    void onAuthFailed();
    void onDisconnected();
    void onConnectionFailed();

private:
    Ui::mw *ui;
    QAudioInput *audioInput = 0;
    QFile *outputFile;
    QWidget *homeWidget = 0;
    StalkModel *stalk = 0;
    QIODevice *inputDevice = 0;
};

#endif // MW_H
